<div class=page_head>
<span style="text-align:right">
  <table style="font-">
  <tr>
   <td><%=link_to "New message".t,new_project_message_path(@project),:class=>'admin'%></td> 
   <td><%=link_to "New to-do list".t,project_todos_path(@project) + "?act=new",:class=>'admin'%></td>
   <td><%=link_to "New writeboard".t,new_project_writeboard_path(@project),:class=>'admin'%></td>
  </tr><tr>
   <td><%=link_to "Add Person".t,"/projects/#{@project.id}/people?act=new",:class=>'admin' if @cur_user.have_power?%></td> 
   <td><%=link_to "New milestone".t,project_milestones_path(@project) + "?act=new",:class=>'admin'%></td> 
   <td><%=link_to "New file".t,new_project_file_path(@project),:class=>'admin'%></td>
  </tr>
  </table>
</span>
<h2><%="Project overview & activity".t%></h2>
</div>
<div id=p_info>
<%=CGI.unescapeHTML(@project.general_info)%>
</div>
<div id=late_ms>
  <%=render :partial=>'milestones/late_milestones'%>
</div>

<div id=upcoming_ms>
   <%=render :partial=>'milestones/upcoming_milestones'%>
</div>
<div id=finished_ms>
</div>

<%if @logs.size == 0%>
  <div class="tour">
    <h2><%="Welcome! Get started by clicking a tab above.".t%></h2>
    <%="Post a message, add a to-do, schedule a milestone. Get started!".t%>
  </div>
  <%=feature"logs"%>
<%else%>
  <%time = ''%>
  <%today = Time.now.strftime('%b/%d/%Y %A').upcase%>
  <table class=data>
  <% @logs.each do |log| %>
  <% if log.created_at.strftime('%b/%d/%Y %A').upcase.to_s != time.to_s 
       time = log.created_at.strftime('%b/%d/%Y %A').upcase 
     %>
    <tr><td colspan=4 style="border-bottom:0px">
	<%=time_flag(log.created_at)%>
    </td></tr>
  <%end%>
  <tr>
     <td width=10% style="border-bottom:0px;">
	<div class="log log_<%=log.type%>">
        <%=image_tag"finish.gif" if log.type_id == 2 and log.name.match("<s>")%> 
	<%=log.type.t%></div>
     </td>
     <td class=log_name><%=log.name%></td>
     <td class=log_label><%=log.label.t%>:</td>
     <td class=log_user><%=log.user.name%></td>
  </tr>
  <% end %>
 </table>
<% end %>

